from AgtUtil import *

logging.basicConfig(
    level=logging.DEBUG,
    format="[%(asctime)s] %(name)s:%(levelname)s: %(message)s"
)
TEMP_PATH = 'D:\\test1\\temp\\'
APK_PATH = 'D:\\test\\apk\\1.apk'
RESULT_PATH = 'D:\\test1\\out\\'
agt = Agt(TEMP_PATH, RESULT_PATH)
# agt.set_curr_apk(APK_PATH)
#agt.install_apk()
#agt.start_app()
#agt.stop_app()
# print agt.curr_apk.package_name
# print agt.get_current_activity()
# print agt.get_current_package()
# print agt.check_current_app()
# sh = agt.take_screenshot()
# st = agt.create_state_via_screenshot(sh)
# print(st.md5_name,st.time_name,st.belong_apk)
print agt.get_device_resolution()